package com.yike.user.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 店铺表
 *
 * @author Sakura
 * @since 2024-08-26
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "一键调价参数")
public class AdjustPriceParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("店铺编号")
    //@NotBlank(message = "店铺编号不能为空")
    private String shopNo;

    @ApiModelProperty("调价状态：1开启 0关闭")
    private Boolean adjustPriceFlag;

    @ApiModelProperty("调价百分比（1-10）")
    @Min(value = 1, message = "调价百分比（1-10）")
    @Max(value = 10, message = "调价百分比（1-10）")
    private Integer adjustPriceRate;

}
